package com.qms.qep.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.qms.common.annotation.Excel;
import com.qms.common.core.domain.BaseEntity;

/**
 * 维修评价对象 repair_evaluation
 * 
 * @author RepairEvaluation
 */
public class RepairEvaluation extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键ID */
    private Integer id;

    /** 维修任务ID */
    @Excel(name = "维修任务ID")
    private Integer repairTaskId;

    /** 评价人 */
    @Excel(name = "评价人")
    private String evaluator;

    /** 评价日期 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "评价日期", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date evaluationDate;

    /** 评价结果 */
    @Excel(name = "评价结果")
    private String evaluationResult;

    /** 评价意见 */
    @Excel(name = "评价意见")
    private String evaluationComment;

    // 扩展字段
    /** 维修人员 */
    private String repairman;
    
    /** 维修方法 */
    private String repairMethod;
    
    /** 维修结果 */
    private String repairResult;
    
    /** 产品名称 */
    private String productName;
    
    /** 批次编号 */
    private String batchCode;

    public void setId(Integer id) 
    {
        this.id = id;
    }

    public Integer getId() 
    {
        return id;
    }
    public void setRepairTaskId(Integer repairTaskId) 
    {
        this.repairTaskId = repairTaskId;
    }

    public Integer getRepairTaskId() 
    {
        return repairTaskId;
    }
    public void setEvaluator(String evaluator) 
    {
        this.evaluator = evaluator;
    }

    public String getEvaluator() 
    {
        return evaluator;
    }
    public void setEvaluationDate(Date evaluationDate) 
    {
        this.evaluationDate = evaluationDate;
    }

    public Date getEvaluationDate() 
    {
        return evaluationDate;
    }
    public void setEvaluationResult(String evaluationResult) 
    {
        this.evaluationResult = evaluationResult;
    }

    public String getEvaluationResult() 
    {
        return evaluationResult;
    }
    public void setEvaluationComment(String evaluationComment) 
    {
        this.evaluationComment = evaluationComment;
    }

    public String getEvaluationComment() 
    {
        return evaluationComment;
    }
    
    public String getRepairman() {
        return repairman;
    }

    public void setRepairman(String repairman) {
        this.repairman = repairman;
    }

    public String getRepairMethod() {
        return repairMethod;
    }

    public void setRepairMethod(String repairMethod) {
        this.repairMethod = repairMethod;
    }

    public String getRepairResult() {
        return repairResult;
    }

    public void setRepairResult(String repairResult) {
        this.repairResult = repairResult;
    }

    public String getProductName() {
        return productName;
    }

    public void setProductName(String productName) {
        this.productName = productName;
    }

    public String getBatchCode() {
        return batchCode;
    }

    public void setBatchCode(String batchCode) {
        this.batchCode = batchCode;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("repairTaskId", getRepairTaskId())
            .append("evaluator", getEvaluator())
            .append("evaluationDate", getEvaluationDate())
            .append("evaluationResult", getEvaluationResult())
            .append("evaluationComment", getEvaluationComment())
            .append("createTime", getCreateTime())
            .toString();
    }
} 